package com.sit.estatemanagementserver.enity;

/**
 * 报修单实体类 (Repair)
 */
public class Repair {

    /**
     * 工单号 (主键)
     */
    private String workOrderId;

    /**
     * 信息
     */
    private String message;

    /**
     * 图片编号 (外键, 关联Image)
     */
    private String imageId;

    /**
     * 是否处理
     */
    private boolean isHandled;

    /**
     * 房间号 (外键, 关联Room)
     */
    private String roomNumber;

    // 构造函数
    public Repair() {
    }

    public Repair(String workOrderId, String message, String imageId, boolean isHandled, String roomNumber) {
        this.workOrderId = workOrderId;
        this.message = message;
        this.imageId = imageId;
        this.isHandled = isHandled;
        this.roomNumber = roomNumber;
    }

    // Getter and Setter
    public String getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(String workOrderId) {
        this.workOrderId = workOrderId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        this.imageId = imageId;
    }

    public boolean isHandled() {
        return isHandled;
    }

    public void setHandled(boolean handled) {
        isHandled = handled;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }
}
